Crate build_probe_mpi

source ·
Expand description

Probe an environment for an installed MPI library

Probing is done in several steps on Unix:

  1. Try to find an MPI compiler wrapper either from the environment variable MPICC or under the name mpicc then run the compiler wrapper with the command line argument -show and interpret the resulting output as gcc compatible command line arguments.
  2. Query the pkg-config database for an installation of mpich.
  3. Query the pkg-config database for an installation of openmpi.

On Windows, only MS-MPI is looked for. The MSMPI_INC and MSMPI_LIB32/64 environment variables are expected.

The result of the first successful step is returned. If no step is successful, a list of errors encountered while executing the steps is returned.

Structs

  • Result of a successfull probe

Functions

  • Probe the environment for an installed MPI library